package com.itqf.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description: 工作类  需要定时执行的任务
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/19
 * @Time: 上午10:39
 */
public class MyJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String  time = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss SSS").
                format(new Date());

        System.out.println("双11，限时秒杀活动开始啦，快来抢购哇！！"+time);

        //
    }
}
